The online racing simulator
Searching in All forums
(984 results)
kiss me
S3 licensed
havent bought it yet, just the hdd's price for case has to be requested, should get mail with price soon :=)
New pc, again :)
kiss me
S3 licensed
ok, well
i got tired of my pc, want to upgrade, stay up-to-date you know.
for now i have
2x500gb samsung sata|| hdd 170€
thermaltake armor+ vh600lbws liquid cooling
ati radeon 3870 x2

i just wanna know, what motherboards are coming up, and what processors?
i want to stay with intel
ram, i dont know yet
price doesnt matter for cpu, mobo, psu, and ram
quad core, core 2 extreme, doesnt matter, just want best rig
Last edited by kiss me, .
kiss me
S3 licensed
well i had to order that case today
the shop keeper said:
its a great case for gamers, very loved
all i can add
kiss me
S3 licensed
well, i've been setting up my !pitlane thing, (did it for someone else, but use it too)
the pitlane isnt much of a use since they can just pit.
so, how do i found out if they pit?
is it like to detect the /pitlane command or so?
i haven't figured it out...
thanks
Last edited by kiss me, .
kiss me
S3 licensed
ok, this checks i you have enough money to pitlane in the first place:

case "!pitlane":
if (Connections[GetConnIdx(MSO.UCID)].Cash <= -399)
InSim.Send_MTC_MessageToConnection("^3you do not have enough money.", MSO.UCID, 0);
else
{
InSim.Send_MTC_MessageToConnection("^3Please stop your car.", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3You will return to pits soon.", MSO.UCID, 0);
InSim.Send_MST_Message("/pitlane " + Connections[GetConnIdx(MSO.UCID)].Username);
Connections[GetConnIdx(MSO.UCID)].Cash -= 600;
InSim.Send_MST_Message(Connections[GetConnIdx(MSO.UCID)].PlayerName + " got towed back to pits for ^7€600");
}
break;

if you have more then -399 you wont get pitlaned
i did 399, so if you pitlane, you dont get banned (if you have the code to band if cash is less then -1000


EDIT: here is ban code

if (Connections[GetConnIdx(NPL.UCID)].Cash < -1000)
{
InSim.Send_MST_Message("^1" + Connections[GetConnIdx(NPL.UCID)].PlayerName + " ^1has gone bankrupcy, banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + " 2");
}

kiss me
S3 licensed
Quote from Kordan59 :ok thanks you kiss but i am not realy bigest programer me ^^
I dont see where is player pits

And for tow ?

<?php 
 
              
case "!tow":
InSim.Send_MTC_MessageToConnection("^7your tow will arrive soon " Connections[GetConnIdx(MSO.UCID)].pitMSO.UCID0);
Connections[GetConnIdx(MSO.UCID)].Cash -= 500;
                    break;
?>

But if player are on pitbox him pay 500? or pitbox detected ?

i dont really understand what you mean, are you dutch or french?
else, post what you mean in your own language.
the .pit aint right soo iirc
here is my code to make you pit on !pitlane

case "!pitlane":
InSim.Send_MTC_MessageToConnection("^3Please stop your car.", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3You will return to pits soon.", MSO.UCID, 0);
InSim.Send_MST_Message("/pitlane " + Connections[GetConnIdx(MSO.UCID)].Username);
break;

then just add your command to take cash.
it works
i tried
i hope i helped alot
Last edited by kiss me, .
kiss me
S3 licensed
its fairly easy
just look up what to give like
if player pits then cash -500 or so
and
case "!tow"
"/msg, your tow will arrive soon." + "/pit"
cash -500
this is very rough example tho
kiss me
S3 licensed
just found it,
its doubled,
its their twice, deleting 1 line fixed it
kiss me
S3 licensed
well i changed it, but like u said, still not fixed
kiss me
S3 licensed
oh dear, this has been bugging me all night
Error 2 A local variable named 'i' cannot be declared in this scope because it would give a different meaning to 'i', which is already used in a 'parent or current' scope to denote something else C:\Users\Dinsterzz\Documents\Cruise Insim 1.0\Cruise Tutorial\LFS_External_Client\LFS_External_Client\Form1.cs 722 42 CruiseTutorial

for (int i = (MCI.Info[0].PLID); i < Players.Count; i++)
at mci(duh)

how can i resolve this,
they should make a dutch version of MSVBS
would be much easier for me
kiss me
S3 licensed
my conclusion from this game:
if you dont know how, use a gun
kiss me
S3 licensed
ok:
1. i once been abducted by aliens
2. i play rfactor(cracked)
3. i'm a virgin
4. i am wealthy
5. i live in the monacco of belgium(for the dutch)
6. i love cookies and drinks during LFS
kiss me
S3 licensed
how does it not work?
mine does, but shaun's wouldn't right?
i spot the not
riplys
Last edited by kiss me, .
kiss me
S3 licensed
Quote from shaun463 :
if (Connections[GetConnIdx(NPL.UCID)].Cash < -5000)
{
InSim.Send_MST_Message( Connections[GetConnIdx(Unique)].Playername + " ^1has gone bankrupt, and was banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + " 3");

A bit cleaner .

no offence but u just changed the amount of when to ban, and change the days of ban, and some text,
u personelised it
kiss me
S3 licensed
ok, i've made this code
it wont ban you if you pay a fine or so and go under 1000
if u go under 1000, by example wrong way, restricted area, speeding etc
this will ban you when you go under 1000 by any reason, it checks your money, if its under E1000 bye bye
you still need to add for how many days or so it will ban the player,
now i gotta eat, but i'm olso gonna add code wich makes ur money go back to: [your set amount]

my tribute to this insim, i asked enough, time to give a little
if it can be cleaner, just correct me
if (Connections[GetConnIdx(NPL.UCID)].Cash < -1000)
{
InSim.Send_MST_Message("^1" + Connections[GetConnIdx(NPL.UCID)].Playername + " ^1has gone bankrupcy, banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + "100");
}

i dont know if the ban thing works by days or so
kiss me
S3 licensed
hehe, well, thanks all, this got me back on track, together with boses pm's
thanks all
kiss me
S3 licensed
itsq not for when to pass negative balance.
on my server , using this insim(modified)
people can steal other peoples cash by typing
!send -85010 user
i want to block this
kiss me
S3 licensed
ok, i really cant figure out how to make it so:
that when a user uses
!send -500 kiss me
or so,
it blocks it
so like if the !send amount contains a -
it blocks it and sends a message to the user: transaction failed,
u kno?
the message works (duh) but after a long day i dont know what command or code to type to block this. since this is a big problem, i ask now

tyvm
kiss me
S3 licensed
i messed up with michelle
i needed a car , so i shot a guy, she was angry..
crazy girl
the bikes suck alot tho!
i dont like them, they sound like fly's or so :s
kiss me
S3 licensed
Quote from Marco1 :I give u a exaple how i made it

if (Players[GetPlyIdx(MCI.Info[o].PLID)].PlayerName.Contains("Officer"))
{
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[1].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 173, 5, 33, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[2].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 178, 5, 34, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[3].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 183, 5, 35, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[4].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 188, 5, 36, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[5].PLID)].UniqueID)].PlayerName, Flags.ButtonStyles.ISB_DARK, 5, 20, 193, 5, 37, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[o].PLID)].UniqueID)].UniqueID, 2, false);
}

So i made it.
I think at there is something wrong then it shows all buttons and only my name and then all other buttons it shows the hostname or other Playername.

PS. Its made in MCI

Thanks Heiko

all your code does, is, when a player name includes officer then display its name, since ur name contains officer, it displays your name, since its done for all 5 buttons.... u get it? so theres your problem

what does it do when u delete this:
PlayerName.Contains("Officer")
this doesnt make that: if the player name contains officer, it shows him the buttons
Last edited by kiss me, .
kiss me
S3 licensed
olso, making a button with all the names, will lag the system unneeded imo
the best will be, if you use the connectionlist, but i'm thinking on how to do that then, ill see what u can do to get a different connection list thingy
kiss me
S3 licensed
Quote from mcgas001 :---

not to be rude, but on first sight i dont see any changes,
what exactly has been changed?
i do see that, when it looses connection it automaticly tries to reconnect
kiss me
S3 licensed
DU-racer,
there is a big thread about this in programmer section, search

do the buttons update with the playername?
kiss me
S3 licensed
if you use the search button, you will find an example for the driven KM
you can save it just like you save whats cars they have or how many cash they have.
to make a km counter, they olso have an example.
for the cop thing itself, well, thats alot of programming, since it has to do with who is near you or so, the message itself is easy tho.
hope i helped a bit
kiss me
S3 licensed
so it shows up in lfs?
well, have you forwarded the ports on your router? on anti virus?
olso, their is a thread with all kind of fixes, and if u'd search u'd get alot of threads fixing this
FGED GREDG RDFGDR GSFDG